from random import randint

MIN = 0
MAX = 10

secret_number = randint(MIN, MAX)

attemp = 0

# input_number = int(input(f'Enter a number between {MIN} and {MAX}:'))
# attemp += 1

# if input_number > secret_number:
#     print('It should be smaller.')
# elif input_number < secret_number:
#     print('It should be bigger.')
# else:
#     print(f'Bingo! {attemp} attemp(s)')

# while input_number != secret_number:

#     input_number = int(input(f'Enter a number between {MIN} and {MAX}:'))
#     attemp += 1

#     if input_number > secret_number:
#         print('It should be smaller.')
#     elif input_number < secret_number:
#         print('It should be bigger.')
#     else:
#         print(f'Bingo! {attemp} attemp(s)')

while True:
    attemp += 1

    input_number = int(input(f'Enter a number between {MIN} and {MAX}:'))

    if input_number > secret_number:
        print('It should be smaller.')
    elif input_number < secret_number:
        print('It should be bigger.')
    else:
        print(f'Bingo! {attemp} attempt(s)')
        break